package com.xyzpool.test;


import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class CalenderTestor {
	public static void main(String[] args) {
		Calendar days_14_ago = Calendar.getInstance();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		System.out.println("CURRENT:"+sdf.format(days_14_ago.getTime()));
		days_14_ago.add(Calendar.DAY_OF_YEAR, -2);
		System.out.println("AFTER:"+sdf.format(days_14_ago.getTime()));
	}
}
